﻿using System.IO.Ports;

namespace GeckoLib {
    public static class GeckoFactory {
        //TODO Make sure it's a valid serial port, etc
        public static Gecko SerialGecko(SerialPort serialPort) {
            serialPort.Open();
            return new Gecko(serialPort.BaseStream);
        }
    }
}
